﻿using UnityEngine;
using System.Collections;

public class ColorLens : MonoBehaviour {

	// Use this for initialization
	public Vision playerVision;
	public Color up;
	public Color down;
	public Color shape;
	void Start () {
	
	}
	
	// Update is called once per frame
	void Update () 
	{
		switch (playerVision.visionType)
		{
			case (Vision.VisionType.gravDown):
				GetComponent<SpriteRenderer>().color = down;
				break;
			case (Vision.VisionType.gravUp):
				GetComponent<SpriteRenderer>().color = up;
				break;
			case (Vision.VisionType.shape):
				GetComponent<SpriteRenderer>().color = shape;
				break;
		}
	}
}
